package com.getset.gestorsms.planos;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;

public class PlanoDAOHibernate implements PlanoDAO{
	
	private Session sessao;
	
	@Override
	public List<Planos> listarPlano() {
		Criteria lista = sessao.createCriteria(Planos.class);
		@SuppressWarnings("unchecked")
		List<Planos> planos = lista.list();
		return planos;
	}

	public Session getSessao() {
		return sessao;
	}

	public void setSessao(Session sessao) {
		this.sessao = sessao;
	}
	
}
